package a.f;

import a.c.z;
import a.d.k;
import a.d.s;
import a.d.t;
import a.d.w;

public class bc
  implements xb
{
  public static boolean a;
  
  public Object a()
  {
    return new a_(20.0D, 20.0D, 0.0D);
  }
  
  public Object a(a.d.o paramo, zb paramzb, zc paramzc1, zc paramzc2)
  {
    boolean bool = o.eg;
    if (wc.a(paramo)) {
      throw new IllegalArgumentException("Invalid label bounds: " + paramo);
    }
    w localw1 = paramzb.c();
    localw1 = new w(localw1.a() + paramzc1.a() + paramzc1.c() / 2.0D, localw1.b() + paramzc1.b() + paramzc1.d() / 2.0D);
    if (!bool) {
      if (paramzb.a() == 0)
      {
        localw2 = paramzb.d();
        if (bool) {
          break label201;
        }
        localw2 = new w(localw2.a() + paramzc2.a() + paramzc2.c() / 2.0D, localw2.b() + paramzc2.b() + paramzc2.d() / 2.0D);
        if (o.dg == 0) {
          break label203;
        }
      }
    }
    label201:
    w localw2 = paramzb.a(0);
    label203:
    double d1 = a(localw1, localw2);
    t localt = paramo.a();
    w localw3 = new w(localt.d() + localt.b() / 2.0D, localt.e() + localt.c() / 2.0D);
    double d2 = a(localw1, localw3);
    double d3 = d2 - d1;
    double d4 = localw3.a() - localw1.a();
    double d5 = localw3.b() - localw1.b();
    double d6 = (bool) || ((d4 != 0.0D) || ((bool) || (d5 != 0.0D))) ? Math.sqrt(d4 * d4 + d5 * d5) : 0.0D;
    Object localObject = a(d6, d3, paramo.k());
    return localObject;
  }
  
  private Object a(double paramDouble1, double paramDouble2, double paramDouble3)
  {
    return new a_(paramDouble1, paramDouble2, paramDouble3);
  }
  
  private double a(w paramw1, w paramw2)
  {
    boolean bool = o.eg;
    double d1 = paramw2.a() - paramw1.a();
    double d2 = paramw2.b() - paramw1.b();
    double d3 = (bool) || ((d1 != 0.0D) || ((bool) || (d2 != 0.0D))) ? Math.atan2(d2, d1) : 0.0D;
    return d3;
  }
  
  public a.d.o a(s params, zb paramzb, zc paramzc1, zc paramzc2, Object paramObject)
  {
    boolean bool = o.eg;
    w localw1 = paramzb.c();
    localw1 = new w(localw1.a() + paramzc1.a() + paramzc1.c() / 2.0D, localw1.b() + paramzc1.b() + paramzc1.d() / 2.0D);
    if (!bool) {
      if (paramzb.a() == 0)
      {
        localw2 = paramzb.d();
        if (bool) {
          break label167;
        }
        localw2 = new w(localw2.a() + paramzc2.a() + paramzc2.c() / 2.0D, localw2.b() + paramzc2.b() + paramzc2.d() / 2.0D);
        if (o.dg == 0) {
          break label169;
        }
      }
    }
    label167:
    w localw2 = paramzb.a(0);
    label169:
    double d1 = a(localw1, localw2);
    if (!bool) {}
    a_ locala_ = paramObject != null ? (a_)paramObject : (a_)a();
    double d2 = d1 + locala_.b;
    double d3 = Math.cos(d2);
    double d4 = Math.sin(d2);
    a.d.o localo = new a.d.o(0.0D, 0.0D, params.b(), params.c());
    localo.a(locala_.a());
    t localt = localo.a();
    w localw3 = new w(localw1.a() + d3 * locala_.a - localt.b() / 2.0D, localw1.b() + d4 * locala_.a - localt.c() / 2.0D);
    localo.g(localw3.a + localt.b() * 0.5D, localw3.b + localt.c() * 0.5D);
    return localo;
  }
  
  public z a(wb paramwb, zb paramzb, zc paramzc1, zc paramzc2)
  {
    z localz = new z();
    localz.add(new gc(paramwb.d(), paramwb.e(), paramwb));
    return localz;
  }
  
  public static class a_
  {
    double a;
    double b;
    double c;
    public static int d;
    
    public a_()
    {
      this(50.0D, 0.0D, 0.0D);
    }
    
    public a_(double paramDouble1, double paramDouble2)
    {
      this(paramDouble1, paramDouble2, 0.0D);
    }
    
    public a_(double paramDouble1, double paramDouble2, double paramDouble3)
    {
      this.a = paramDouble1;
      this.b = paramDouble2;
      this.c = paramDouble3;
    }
    
    public double a()
    {
      return this.c;
    }
    
    public void a(double paramDouble)
    {
      this.c = paramDouble;
    }
    
    public w b()
    {
      return new w(this.a, this.b);
    }
    
    public void a(double paramDouble1, double paramDouble2)
    {
      this.a = paramDouble1;
      this.b = paramDouble2;
    }
    
    public String toString()
    {
      return getClass() + " radius=" + this.a + "  theta(deg)=" + k.b(this.b);
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.bc
 * JD-Core Version:    0.7.0.1
 */